<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
     <form action="add">
        姓名：<input type="text" name="ename">
        部门：<select name="did">
                  <tr th:each="dept:${dlist}">
                      <option th:value="${dept.did}" th:text="${dept.dname}"></option>
                  </tr>
              </select>
        城市：<select name="cid">
                  <tr th:each="city:${clist}">
                      <option th:value="${city.cid}" th:text="${city.cname}"></option>
                  </tr>
              </select>
               <input type="submit" value="提交">

     </form>
</body>
</html>